//
//  KDInstructCell.m
//  WangJingApp
//
//  Created by 魏强 on 17/3/1.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDInstructCell.h"
@interface KDInstructCell ()
@property (weak, nonatomic) IBOutlet UIButton *nameBtn;
@property (weak, nonatomic) IBOutlet UILabel *timeLb;
@property (weak, nonatomic) IBOutlet UILabel *sourceLb;
@property (weak, nonatomic) IBOutlet UILabel *titleLb;
/**  最新批示 */
@property (weak, nonatomic) IBOutlet UIButton *instructBtn;

@end
@implementation KDInstructCell

#pragma mark - 懒加载区

#pragma mark - 生命周期区
+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    NSString *cellId =@"KDInstructCell";
    KDInstructCell *cell =[tableView dequeueReusableCellWithIdentifier:cellId];
    if (cell == nil)
    {
        cell =[[[NSBundle mainBundle]loadNibNamed:cellId owner:self options:nil]lastObject];
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        cell.nameBtn.layer.cornerRadius = 3;
        cell.nameBtn.clipsToBounds = YES;
    }

    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}
- (void)setModel:(KDInstructCellModel *)model{
    _model = model;
    [self.nameBtn setTitle:model.cntnt_subs_id forState:UIControlStateNormal];
    self.timeLb.text = model.create_date;
    self.titleLb.text = model.cntnt_title;
    [self.instructBtn setTitle:@"最新批示： 省厅 张三三" forState:UIControlStateNormal];
}
#pragma mark - 板块布置区

#pragma mark - 事件点击区

#pragma mark - 网络请求区

#pragma mark - 通知接收区

@end
